<template>
  <div id="app">
    <m-header></m-header>
    <tab />
    <router-view></router-view>
  </div>
</template>
<script>
import MHeader from '@/components/m-header/m-header.vue'
import Tab from '@/components/tab/tab.vue'
export default {
  components: {
    MHeader,
    Tab
  },
  mounted () {
    this.setBadge()
  },
  methods: {
    // 设置数字
    setBadge() {
      // eslint-disable-next-line
      plus.runtime.setBadgeNumber(8)
    },
    // 清除数字
    clearBadge() {
      // eslint-disable-next-line
      plus.runtime.setBadgeNumber(0)
    }
  }
}
</script>

<style lang="stylus" scoped>
  //@import "./assets/stylus/variable"
  @import "~@/assets/stylus/variable"

  #app
    color: $color-theme
</style>
